/**
 * Copyright &copy; 2012-2014 <a href="https://github.com/thinkgem/jeesite">JeeSite</a> All rights reserved.
 */
package com.jims.master.modules.doctor.netHosptial.dao;


import com.jims.master.common.persistence.CrudDao;
import com.jims.master.common.persistence.annotation.MyBatisDao;
import com.jims.master.modules.doctor.netHosptial.entity.NetClinicMaster;
import org.apache.ibatis.annotations.Param;
import java.util.List;


/**
 * 门诊主记录DAO接口
 * @author zp
 * @version 2016-05-31
 */
@MyBatisDao
public interface NetClinicMasterDao extends CrudDao<NetClinicMaster> {
    /**
     * 获取用户门诊信息
     * @param patientId
     * @return
     */
    public List<NetClinicMaster> getPatient(NetClinicMaster netClinicMaster);

    /**
     * 获得挂号信息
     * @param patientId
     * @param VISIT_DATE
     * @return NetClinicMaster
     */
    public NetClinicMaster getClinicMasterForFree(NetClinicMaster netClinicMaster);

    /**
     * 获得挂号信息
     * @param VISIT_DATE
     * @return
     */
    public String getMaxClinicMasterOfDate(NetClinicMaster netClinicMaster);

    /**
     * 获得患者未传送的挂号信息
     * @param patientId
     * @return
     */
    public List<NetClinicMaster> getClinicMasterToSend(NetClinicMaster netClinicMaster);

    //改变发送标志
    public Integer send(NetClinicMaster netClinicMaster);

    /**
     * 获得挂号信息
     * @param appointNo
     * @return NetClinicMaster
     */
    public NetClinicMaster getClinicMasterByAppointNo(@Param("appointNo") String appointNo);

    /**
     * 获得门诊号
     */
    public String getMaxClinicNo();

    /**
     * 获得挂号信息
     * @param-visitDate
     * @param-visitNo
     * @return NetClinicMaster
     */
    public NetClinicMaster getClinicByEntity(NetClinicMaster netClinicMaster);

    /**
     * 获得MaxSerialNo
     * @param-VISIT_DATE
     * @return
     */
    public String getMaxSerialNoOfDate(NetClinicMaster netClinicMaster);
}